﻿<%@ Page Language="C#" MasterPageFile="~/car-Insurance/Car_Insurance_Result_new.master"
    Async="true" AutoEventWireup="true" CodeFile="PasswordRecovery.aspx.cs" Inherits="User_PasswordRecovery"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <script src="../includes/ValidationError.js" type="text/javascript"></script>

    <script src="../includes/ValidationEffect.js" type="text/javascript"></script>

    <div class="elements_inner_wrapper">

            <div class="rightcol">
                <div class="content_right">
                    <div class="content_right">
                    
                    <!-- #Include file="../includes/rcol_services.aspx" -->
                    <div class="seperator"></div>
                    <div class="foot"></div>
                    </div>
                </div>
            </div>

        <div id="contentBody">
            <div class="section">
                <fieldset>
                    <asp:Panel runat="server" ID="pnlPasswordRecovery" DefaultButton="btnRecoverPassword">
                        <h1>
                            Password Recovery:</h1>
                        <div class="row">
                            <span>Please enter your email address and type the characters you see in the picture
                                below to recover your password. </span>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <asp:Label ID="lblMessage" ForeColor="Red" runat="server"></asp:Label>
                            <asp:ValidationSummary ID="ValidationSummary1" CssClass="errorSummary" HeaderText="Oops... Please complete the form"
                                runat="server" ValidationGroup="customer" />
                        </div>
                        <div class="row">
                            <label for="Email" class="mand_red">
                                Enter Email</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtEmail" runat="server" MaxLength="80" Width="200px"></asp:TextBox>
                                </span><span class="indicator">
                                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                                        Display="Dynamic" ErrorMessage="" Text="" ValidationGroup="customer" validationErrorCssClass="validationError">
                                    </asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="rfvEmailValid" runat="server" ControlToValidate="txtEmail"
                                        Display="Dynamic" ErrorMessage="" validationErrorCssClass="validationError" Text=""
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="customer"></asp:RegularExpressionValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <label for="Security Check" class="mand_red">
                                Security Check</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:UpdatePanel runat="server" ID="uplCAPCHA">
                                        <ContentTemplate>
                                            <div style="display: block; float: left;">
                                                <asp:Image ID="imgCAPTCHA" runat="server" />
                                            </div>
                                            <asp:ImageButton ID="btnNewImage" runat="server" OnClick="btnNewImage_Click" ImageUrl="~/images/icons/refresh.gif"
                                                ToolTip="Reload" AlternateText="Refresh" />
                                            <%--<asp:Label ID="Label1" Text="" runat="server"></asp:Label>--%>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    <asp:UpdateProgress AssociatedUpdatePanelID="uplCAPCHA" DisplayAfter="100" runat="server"
                                        ID="udpCAPTCHA">
                                        <ProgressTemplate>
                                            <asp:Image ID="imgLoading" ImageUrl="~/images/loading7.gif" runat="server" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <label for="Security Check" class="mand_red">
                                Text in Box</label>
                            <div class="field">
                                <asp:UpdatePanel ID="uplSecurityCode" runat="server">
                                    <ContentTemplate>
                                        <span class="indicator">
                                            <asp:TextBox ID="txtSecurityCode" Width="200px" MaxLength="20" runat="server"></asp:TextBox>
                                        </span><span class="indicator">
                                            <asp:RequiredFieldValidator ID="rfvSecurityCheck" runat="server" ControlToValidate="txtSecurityCode"
                                                Display="Dynamic" ErrorMessage="" validationErrorCssClass="validationError" Text=""
                                                ValidationGroup="customer"></asp:RequiredFieldValidator>
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <label>
                            </label>
                            <div class="field">
                                <span class="button2">
                                    <%--<asp:ImageButton ID="btnSubmit" ImageUrl="~/images/buttons/button_recoverpass.gif"
                                        runat="server" OnClientClick="LoadValidationErrorCss();" OnClick="btnSubmit_Click"
                                        Text="Recover Password" ValidationGroup="customer" />--%>
                                    <asp:Button runat="server" ID="btnRecoverPassword" CssClass="button_recoverpassword"
                                        ValidationGroup="customer" OnClientClick="LoadValidationErrorCss(); if (Page_ClientValidate('customer')){ this.className = 'button_w_processing';}"
                                        OnClick="btnRecoverPassword_Click" />
                                    <div style="display: none;">
                                        <input id="inputFromCar" runat="server" value="0" /></div>
                                </span>
                            </div>
                        </div>
                    </asp:Panel>
                </fieldset>
            </div>

        </div>
    </div>
</asp:Content>
